package com.ruoyi.passengers.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passengers.mapper.OtherAccountsMapper;
import com.ruoyi.passengers.domain.OtherAccounts;
import com.ruoyi.passengers.service.IOtherAccountsService;

/**
 * 第三方账号
Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class OtherAccountsServiceImpl implements IOtherAccountsService 
{
    @Autowired
    private OtherAccountsMapper otherAccountsMapper;

    /**
     * 查询第三方账号

     * 
     * @param otherAccountsId 第三方账号
主键
     * @return 第三方账号

     */
    @Override
    public OtherAccounts selectOtherAccountsByOtherAccountsId(Long otherAccountsId)
    {
        return otherAccountsMapper.selectOtherAccountsByOtherAccountsId(otherAccountsId);
    }

    /**
     * 查询第三方账号
列表
     * 
     * @param otherAccounts 第三方账号

     * @return 第三方账号

     */
    @Override
    public List<OtherAccounts> selectOtherAccountsList(OtherAccounts otherAccounts)
    {
        return otherAccountsMapper.selectOtherAccountsList(otherAccounts);
    }

    /**
     * 新增第三方账号

     * 
     * @param otherAccounts 第三方账号

     * @return 结果
     */
    @Override
    public int insertOtherAccounts(OtherAccounts otherAccounts)
    {
        return otherAccountsMapper.insertOtherAccounts(otherAccounts);
    }

    /**
     * 修改第三方账号

     * 
     * @param otherAccounts 第三方账号

     * @return 结果
     */
    @Override
    public int updateOtherAccounts(OtherAccounts otherAccounts)
    {
        return otherAccountsMapper.updateOtherAccounts(otherAccounts);
    }

    /**
     * 批量删除第三方账号

     * 
     * @param otherAccountsIds 需要删除的第三方账号
主键
     * @return 结果
     */
    @Override
    public int deleteOtherAccountsByOtherAccountsIds(Long[] otherAccountsIds)
    {
        return otherAccountsMapper.deleteOtherAccountsByOtherAccountsIds(otherAccountsIds);
    }

    /**
     * 删除第三方账号
信息
     * 
     * @param otherAccountsId 第三方账号
主键
     * @return 结果
     */
    @Override
    public int deleteOtherAccountsByOtherAccountsId(Long otherAccountsId)
    {
        return otherAccountsMapper.deleteOtherAccountsByOtherAccountsId(otherAccountsId);
    }
}
